#!/bin/bash
# clear.sh


path="./index"

rm -rf ./CMakeFiles/
rm -rf ./CMakeCache.txt
rm -rf ./cmake_install.cmake
rm -rf ./Makefile
rm -rf $path/word_info.dat
rm -rf $path/doc_info.dat
rm -rf $path/cidx/
rm -rf $path/c_index.dat
rm -rf $path/tidx/
rm -rf $path/t_index.dat
rm -rf ./indexer
rm -rf ./searcher

echo "clear done"
echo "now mkdir ..."

seq=0

while((seq<256))
do
  mkdir -p $path/cidx/$seq
  mkdir -p $path/tidx/$seq
  seq=$(($seq+1))
done

echo "all done!"
